﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Library
{
    class Booklet : Makulatura
    {
        public string author { get; set; }
        public string typeCover { get; set; }
        public override string name
        {
            get
            {
                return base.brend;
            }
            set
            {
            }
        }
        public Booklet(string typeCover, string author, int price, string brend, int size) : base() 
        {
            this.typeCover = typeCover;
            this.author = author;
            this.price = price;
            this.brend = brend;
            this.size = size;
        }
        public override string ToString()
        {
             return this.name +"$"+ this.brend+"$" + this.price+ "$" + this.size+ "$" + this.author + "$" + this.typeCover + "\r\n";
        }
    }
}
